<?php

namespace app\common\model\mysql;


class AccountModel extends BaseModel
{
    protected $table = 'pro_account';

    public function getHeadimgAttr($value)
    {
        return config('app.upload_host') . $value;
    }

    public function getGroupIdsAttr($value)
    {
        if ($value) {
            return explode(',', $value);
        }
        return [];
    }

    public function getProjectIdsAttr($value)
    {
        if ($value) {
            return explode(',', $value);
        }
        return [];
    }
}